import { Controller, Get, Query, Req } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';

import { PointService } from './point.service';
import { AdminPointPageReqDto } from './dto/admin-point.dto';

@ApiTags('后台/积分')
@Controller('admin/point')
export class AdminPointController {
  constructor(private readonly pointService: PointService) {}

  /**
   * 积分列表
   */
  @Get()
  pointList(@Query() query: AdminPointPageReqDto) {
    return this.pointService.findAllForPage(query);
  }
}
